package com.etc.service.impl;

import com.etc.dao.InfobarDao;
import com.etc.entity.Infobar;
import com.etc.service.InfobarService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class InfobarServiceImpl implements InfobarService {
    @Resource
    private InfobarDao infobarDao;
    @Override
    public Infobar findById(Integer id) {
        return infobarDao.findById(id);
    }

    @Override
    public List<Infobar> findByPark(Integer id) {
        return infobarDao.findByPark(id);
    }

    @Override
    public List<Infobar> findAllInfobar() {
        return infobarDao.findAllInfobal();
    }
}
